package com.education.welco.feign;

import com.education.common.pojo.OResources;
import com.education.common.pojo.SysInfoMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(value = "online-service")
public interface OnlineFeign {

    //查询专业课程体系资源
    @RequestMapping(value = "/online/oresources/selectResources",method = RequestMethod.GET)
    public List<OResources> selectResources(@RequestParam(value = "ids", required = true) Integer[] ids,
                                            @RequestParam(value = "type", required = true) Integer type);

    //查询免费公开课
    @RequestMapping(value = "/online/ofreeclass/selectFreeClassById",method = RequestMethod.GET)
    public Map<String,Object> selectFreeClassById(@RequestParam(value = "id", required = true) Integer id);

}
